package com.lanchetech.common.enums;

import lombok.Getter;

@Getter
public enum ActivityEnum {
    // 限时优惠，就是当前的秒杀；而秒杀是不用的。
    KILL("10", "秒杀(暂时不用)"),
    FLASH_SALE("11", "秒杀"),
    PACKAGES("12", "套餐"),
    BARGAIN("13", "砍价"),
    PROJECT("14", "预约项目"),
    EXPERIENCE("15", "体验项目"),
    APPLY("16", "活动报名"),
    NEW_USER("17", "新人专区"),

    SHARE("18", "分享赚"),
    CONSUMPTION_FUND("19", "消费金"),
    ;

    private String activity;
    private String remark;

    ActivityEnum(String activity, String remark) {
        this.activity = activity;
        this.remark = remark;
    }

    public static String getRemarkByActivity(String activity) {
        for (ActivityEnum item : ActivityEnum.values()) {
            if (item.getActivity().equals(activity)) {
                return item.getRemark();
            }
        }
        return "";
    }
}
